using System;
using System.Collections.Generic;
using PhillyCodeCamp.DTO;
using PhillyCodeCamp.UI;

namespace PhillyCodeCampSpecs.Helpers
{
    public class StubTaxCalculatorView : ITaxCalculatorView
    {
        public bool ErrorsWereShown { get; private set; }
        private IList<ILookupDTO> _states;

        public int NumberOfStatesDisplayed
        {
            get
            {
                return _states.Count;
            }
        }
        public void ShowErrors(IList<string> messages)
        {
            ErrorsWereShown = true;
        }

        public void ShowError(string message)
        {
            ErrorsWereShown = true;
        }

        public IList<ILookupDTO> States
        {
            set { _states = value; }
        }

        public string Date { get; private set; }
        public string StateSelected { get; private set; }
        public bool IsBailedOut { get; private set; }
        public string TotalIncome { get; private set; }
        public string CalculatedTax { private get; set;}
    }
}